home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dbase / techs.zip / TECH4.ZIP / READ.ME < prev   
Text File  |  1980-01-01  |  3KB  |  81 lines

  1. PROGRAM NAME: Label2.PRG 
  2.  
  3. DESCRIPTION:  Program to print customized labels.
  4.  
  5. ISSUE: August, 1985
  6. PAGE:  25
  7.  
  8. SOFTWARE VERSIONS:  dBASE III, versions 1.0, 1.1
  9.  
  10. FUNCTION: This program prints one-across shipping labels inside a
  11. box.  
  12.  
  13. FILES NEEDED: Label2.PRG
  14.               
  15. SETUP INSTRUCTIONS:  To set up this program:
  16.  
  17. 1. Define label spacing parameters.
  18.  
  19.    The table below summarizes the configurable parameters.  Make
  20.    the changes you need for the specific label definition you
  21.    want.  Be sure that the label height and width exceed the
  22.    number and width of the print line expressions.  The program
  23.    makes no check for this.
  24.  
  25.    parameter           variable name    default value
  26.    lines between labels       between             2
  27.    left margin           lmargin                 3
  28.    label height               box_h                 5
  29.    label width           box_w                55 
  30.  
  31. 2. Define the print line expressions.
  32.  
  33.    This is the heart.  Here, you will assign a series of memory
  34.    variables with the prefix "exp." Each will have a suffix that
  35.    corresponds to the number of the lines in the label.  For
  36.    lines less than 10, the suffix will have a leading zero.  This
  37.    technique allows a rudimentary form of subscripting.  
  38.  
  39.    You must have an expression for every line of your label up to
  40.    the beginning of the trailing lines.  Trailing lines are blank
  41.    lines that follow the last print line of your label but are
  42.    within the box.  You need not concern yourself about them, as
  43.    they are calculated.  Embedded blank lines, however, must be
  44.    accounted for with an expression.  For example:
  45.  
  46.          +------------------------------+
  47.          | Ship to: Fred                |<--- exp01
  48.          |                              |<--- exp02
  49.          |   From : D. Base             |<--- exp03
  50.          |                              |<--- Trailing lines
  51.          +------------------------------+
  52.  
  53.     
  54.    To create a blank line, assign to the print line variable a
  55.    null value.   For example:
  56.         
  57.          exp02 = ""
  58.  
  59.    To assign a non-blank print line expression, assign the
  60.    appropriate line variable with an expression that returns what
  61.    you wish to see in your label.  The major limitation is that
  62.    the expression must evaluate to character type.
  63.  
  64.    Last, you must assign the memory variable, nexp, with the
  65.    number of print line expressions you have defined.
  66.    
  67. 3. Define box characters:
  68.  
  69.    You can assign different characters for the label box.  This
  70.    is entirely optional and is up to your discretion.
  71.  
  72.    To run Label2.PRG you must pass PARAMETERS to it.  They are,
  73.    in order of passing: database filename, index filename, FILTER
  74.    condition, and printer toggle.  The syntax is as follows:
  75.  
  76.    DO Label2 WITH <expC>,<expC>,<expC>,<expC>
  77.  
  78. A typical example:
  79.  
  80.    DO Label2 WITH "Yourfile","Yourndx","Shipto='Ashton-Tate'","Y"
  81.